﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataAccess;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class CO_SO_HA_TANGBL
    {
        #region ***** Init Methods *****

        CO_SO_HA_TANGDA objCO_SO_HA_TANGDA;

        public CO_SO_HA_TANGBL()
        {
            objCO_SO_HA_TANGDA = new CO_SO_HA_TANGDA();
        }

        #endregion ***** Init Methods *****

        #region ***** Get Methods *****

        /// <summary>
        /// Get CO_SO_HA_TANG by ma_ho_so
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns>CO_SO_HA_TANG</returns>
        public CO_SO_HA_TANG GetByMA_HO_SO(Int64 ma_ho_so)
        {
            return objCO_SO_HA_TANGDA.GetByMA_HO_SO(ma_ho_so);
        }

        /// <summary>
        /// Get all of CO_SO_HA_TANG
        /// </summary>
        /// <returns>List<<CO_SO_HA_TANG>></returns>
        public List<CO_SO_HA_TANG> GetList()
        {
            return objCO_SO_HA_TANGDA.GetList();
        }

        /// <summary>
        /// Get DataSet of CO_SO_HA_TANG
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objCO_SO_HA_TANGDA.GetDataSet();
        }

        /// <summary>
        /// Get all of CO_SO_HA_TANG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<CO_SO_HA_TANG>></returns>
        public List<CO_SO_HA_TANG> GetListPaged(int recperpage, int pageindex)
        {
            return objCO_SO_HA_TANGDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of CO_SO_HA_TANG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objCO_SO_HA_TANGDA.GetDataSetPaged(recperpage, pageindex);
        }

        #endregion ***** Get Methods *****

        #region ***** Add Update Delete Methods *****

        /// <summary>
        /// Add a new CO_SO_HA_TANG within CO_SO_HA_TANG database table
        /// </summary>
        /// <param name="obj_co_so_ha_tang">CO_SO_HA_TANG</param>
        /// <returns>key of table</returns>
        public long Add(CO_SO_HA_TANG obj_co_so_ha_tang)
        {
            return objCO_SO_HA_TANGDA.Add(obj_co_so_ha_tang);
        }

        /// <summary>
        /// updates the specified CO_SO_HA_TANG
        /// </summary>
        /// <param name="obj_co_so_ha_tang">CO_SO_HA_TANG</param>
        /// <returns></returns>
        public void Update(CO_SO_HA_TANG obj_co_so_ha_tang)
        {
            objCO_SO_HA_TANGDA.Update(obj_co_so_ha_tang);
        }

        /// <summary>
        /// Delete the specified CO_SO_HA_TANG
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns></returns>
        public void Delete(Int64 ma_ho_so)
        {
            objCO_SO_HA_TANGDA.Delete(ma_ho_so);
        }

        #endregion ***** Add Update Delete Methods *****
    }
}